import request from '@/utils/request'

export default {
  //获取医院列表
  getListHosp(page,limit,hospitalQueryVo) {
    return request({
      url: `/admin/hosp/hospital/list/${page}/${limit}`,
      method: 'GET',
      params:hospitalQueryVo
    });
  },

  //修改医院状态
  updateHospStatus(id,status){
    return request({
      url: `/admin/hosp/hospital/updateHospStatus/${id}/${status}`,
      method: 'PUT',
    })
  },
//根据id查询单挑医院信息
  findHospById(id){
    return request({
      url: `/admin/hosp/hospital/findHospById/${id}`,
      method: 'GET',
    })
  },
  //根据医院编号和科室编号，查询排班规则数据API
  getScheduleRule(page,limit,hoscode,depcode){
    return request({
      url: `/admin/hosp/schedule/getScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
      method: 'GET'
    })
  },

  //根据医院编号、科室编号和工作日期，查询排班详细信息
  getScheduleDetail(hoscode,depcode,workDate){
    return request({
      url: `/admin/hosp/schedule/getScheduleDetail/${hoscode}/${depcode}/${workDate}`,
      method: 'GET'
    })
  }
}
